<?php
	
	echo '<div id="leftMenu">';
	echo 	'<div id="leftMenu-title">Kategóriák</div>';
	//printCategories($products_model->getRootCategories(), $selected_category_id, $products_model);
	$categories->renderLeftMenu();
	echo '</div>';
	/*
	function printCategories($p_categories, $selected_category_id, $model) {
		foreach($p_categories as $category) 
		{			
			$class="";
			//echo $selected_category_id . " " . $category->id;
			if($selected_category_id == $category->id) $class=' class="active"';
			echo '<ul class="nav nav-pills nav-stacked" style="max-width: 260px;">';
			echo      '<li><a '.$class.' href="/smaragd/products/category/' . $category->id . '">'
						. '<span class="badge pull-right">'.$model->numberOfProductsIn($category->id).'</span>' 
						. $category->name . '</a>';
            if($category->hasSubCategories()) printCategories($category->subCategories, $selected_category_id, $model);
			echo      "</li>";
			echo "</ul>";
		}
	}
	*/
?>